package com.situ.user.controller.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.situ.user.bean.Goods;
import com.situ.user.service.GoodsService;

/**
 * 
 * @author: JavaSiegeLoin(Gang)
 * @E-mail: wzg15653@163.com
 * @创建日期: 2021年10月26日 上午8:22:44
 * @ClassName: APIGoodsController
 * @类描述-Description:获取商品信息的接口
 */
@RestController
@RequestMapping("/api/goods")
public class APIGoodsController {

	@Autowired
	private GoodsService goodsService;

	@GetMapping("/search")
	public List search(Goods goods, Integer firstSortId) {
		List list = goodsService.search(goods, firstSortId);
		return list;
	}
}
